import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import { Button,
         Icon,
         Tab,
         Tabs,
         TreeSelect,
         Stepper,
         ActionBar, 
         ActionBarIcon,
         ActionBarButton,
         Toast,
         Checkbox,
         CheckboxGroup,
         SubmitBar,
         ContactCard,
         Card,
         Dialog,
         AddressList,
         AddressEdit,
         CellGroup,
         Field,
         Form} from 'vant'


const app = createApp(App)
// Vant库插件引入
app
.use(Button)
.use(Icon)
.use(Tab)
.use(Tabs)
.use(TreeSelect)
.use(Stepper)
.use(ActionBar)
.use(ActionBarIcon)
.use(ActionBarButton)
.use(AddressList)
.use(CheckboxGroup)
.use(Checkbox)
.use(SubmitBar)
.use(ContactCard)
.use(Card)
.use(AddressEdit)
.use(CellGroup)
.use(Field)
.use(Form)
.use(Dialog)
.use(Toast)
// 路由导入
app.use(router).use(store)
// 页面挂载
app.mount('#app')
